<?php
/*
 *配置文件
 */
$_config = array();

// ----------------------------  CONFIG DB  ----------------------------- //
/**************  只读数据库数据库编号，其余为可读可写  *****************/
$_config['db']['OnlyRead'] =  array();
/*************** 设置需要主数据库读取数据的表 ******************/
$_config['db']['map'][] =  'wx_wxuser';
$_config['db']['map'][] =  'wx_activities_status';
$_config['db']['map'][] =  'wx_cv';
$_config['db']['map'][] =  'wx_checkin_log';
$_config['db']['map'][] =  'wx_chat';
$_config['db']['map'][] =  'wx_chat_event';
$_config['db']['map'][] =  'wx_chat_text';

/**************主数据库配置****************/
$_config['db']['1']['dbhost'] = 'rm-2ze05y9beg61pp166.mysql.rds.aliyuncs.com';
$_config['db']['1']['dbuser'] = 'xinglong';
$_config['db']['1']['dbpw'] = '1qaz2wsx';

$_config['db']['1']['dbcharset'] = 'utf8';
$_config['db']['1']['pconnect'] = '0';
//$_config['db']['1']['dbname'] = 'oa';
$_config['db']['1']['dbname'] = 'dbmain';
$_config['db']['1']['tablepre'] = 'shechem_';

/**************商城数据库配置****************/
$_config['db']['3']['dbhost'] = 'rm-2ze05y9beg61pp166.mysql.rds.aliyuncs.com';
$_config['db']['3']['dbuser'] = 'xinglong';
$_config['db']['3']['dbpw'] = '1qaz2wsx';

$_config['db']['3']['dbcharset'] = 'utf8';
$_config['db']['3']['pconnect'] = '0';
//$_config['db']['1']['dbname'] = 'oa';
$_config['db']['3']['dbname'] = 'dbshop';
$_config['db']['3']['tablepre'] = 'shechem_';

/**************商城只读数据库配置****************/
$_config['db']['4']['dbhost'] = 'rr-2zebyh249r723w0i8.mysql.rds.aliyuncs.com';
$_config['db']['4']['dbuser'] = 'xinglong';
$_config['db']['4']['dbpw'] = '1qaz2wsx';
$_config['db']['4']['dbcharset'] = 'utf8';
$_config['db']['4']['pconnect'] = '0';
$_config['db']['4']['dbname'] = 'dbshop';
$_config['db']['4']['tablepre'] = 'shechem_';



$_config['db']['slave'] = '';
$_config['db']['common']['slave_except_table'] = '';

// --------------------------  CONFIG OUTPUT  --------------------------- //
$_config['output']['charset'] = 'utf-8';
$_config['output']['forceheader'] = 1;
$_config['output']['gzip'] = '1';
$_config['output']['tplrefresh'] = 1;
$_config['output']['language'] = 'zh_cn';
$_config['output']['staticurl'] = 'static/';
$_config['output']['template'] = 'template/';
$_config['output']['ajaxvalidate'] = '0';
$_config['output']['iecompatible'] = '0';

// --------------------------  CONFIG COOKIE  --------------------------- //
$_config['cookie']['cookiepre'] = 'BDed_';
$_config['cookie']['cookiedomain'] = 'xinglongdayuan.com';
$_config['cookie']['cookiepath'] = '/';

// ---------------------------  CONFIG INPUT  --------------------------- //
$_config['input']['compatible'] = 1;
$_config['input']['request'] = 1;

//-----------------------------  memory ---------------------//

$_config['memory']['ip'] = 'df573a178d53490f.m.cnbjalicm12pub001.ocs.aliyuncs.com';
$_config['memory']['port'] = '11211';
$_config['memory']['usr'] = 'df573a178d53490f';
$_config['memory']['pwd'] = 'xinglong123QWEasd';
$_config['memory']['prefix'] = 'shechem.cn';

//redis 配置正式
//$_config['memory']['redis']['server'] = 'r-2ze05f78bec14344.redis.rds.aliyuncs.com';
//$_config['memory']['redis']['port'] = 6379;
//$_config['memory']['redis']['requirepass'] = '3wzj9CTRdN5NzUgF';

//$_config['memory']['redis']['server'] = '83b631cfa76d4262.m.cnbja.kvstore.aliyuncs.com';
//$_config['memory']['redis']['port'] = 6379;
//$_config['memory']['redis']['requirepass'] = '83b631cfa76d4262:123QWEasd';
$_config['memory']['redis']['server'] = '101.201.72.43';
$_config['memory']['redis']['port'] = 6379;
$_config['memory']['redis']['requirepass'] = 'xinglong828';


$_config['file']['oss'] = true;

$_config['cache']['dir'] = 'cache/';

$_config['API']['APPID'] = '38';
$_config['API']['KEY'] = '123qweasd';
$_config['API']['pkcs7'] = 'mnckeapAfjfywehxnvglfodjwhgqvxfshapfirjcjsn';


define('DB_MAIN', 1);
//define('DB_MAIN_READ', 2);
define('DB_ESHOP',3);
define('ACCESSID', 'uTQyAim7XLJg5KEF');
define('ACCESSKEY', 'M8Aety9j3XCZcq2jfl1geEpGx7S5qT');
define('CERT_BUCKET', 'xingl-wx-sert');
define('FILE_BUCKET', 'xinglfile');


/**
 * OSS服务地址
青岛节点外网地址： oss-cn-qingdao.aliyuncs.com
青岛节点内网地址： oss-cn-qingdao-internal.aliyuncs.com

北京节点外网地址：oss-cn-beijing.aliyuncs.com
北京节点内网地址：oss-cn-beijing-internal.aliyuncs.com

杭州节点外网地址： oss-cn-hangzhou.aliyuncs.com
杭州节点内网地址： oss-cn-hangzhou-internal.aliyuncs.com

香港节点外网地址： oss-cn-hongkong.aliyuncs.com
香港节点内网地址： oss-cn-hongkong-internal.aliyuncs.com

深圳节点外网地址： oss-cn-shenzhen.aliyuncs.com
深圳节点内网地址： oss-cn-shenzhen-internal.aliyuncs.com

原地址oss.aliyuncs.com 默认指向杭州节点外网地址。
原内网地址oss-internal.aliyuncs.com 默认指向杭州节点内网地址
 */
define('OSS_DEFAULT_INTERNAL_HOST', 'oss-cn-beijing-internal.aliyuncs.com');
define('SC_UP_URL', 'http://up.3668.xinglongdayuan.com');
define('SC_UPOSS_URL', 'http://uposs.3668.xinglongdayuan.com');
define('SC_BACK_HOST', 'http://public.xinglongdayuan.com');

define('SC_MAIN_URL', 'http://wx2014.xinglongdayuan.com');
define('SC_ACC_URL', 'http://account.xinglongdayuan.com');
define('SC_I_URL', 'http://i.xinglongdayuan.com');
define('SC_OA_URL', '');
define('SC_OA2014_URL', '');
define('SC_BASIC_URL', 'http://basic.console.wx.xinglongdayuan.com');
define('SC_SHOP_URL', 'http://shop.console.es.xinglongdayuan.com');
define('SC_STATIC_URL', 'http://static.3668.xinglongdayuan.com');
define('SC_CONSOLE_URL', 'http://console.wx.xinglong.shechem.cn');
#define('SC_WEBWX_URL', '.xinglong.webwx.shechem.cn');
define('SC_WEBWX_URL', '.webwx.xinglongdayuan.com');


define('SC_WEBAPI','http://api.one-stop.xinglongdayuan.com');
